package com.tarena.lbs.marketing.web.mapper;

import com.tarena.lbs.pojo.marketing.dos.UserReceiveCouponDO;
import com.tarena.lbs.pojo.marketing.query.UserCouponCodeQuery;
import com.tarena.lbs.pojo.marketing.query.UserCouponQuery;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface UserReceiveCouponMapper {
    int insert(UserReceiveCouponDO record);

    UserReceiveCouponDO selectByPrimaryKey(Integer id);

    List<UserReceiveCouponDO> selectUserList(UserCouponQuery couponQuery);

    UserReceiveCouponDO userCouponDetail(UserCouponCodeQuery query);

    List<UserReceiveCouponDO> userCouponList(@Param("userId") Integer userId, @Param("couponId") Integer couponId);

    int updateByPrimaryKeySelective(UserReceiveCouponDO record);

    int updateByPrimaryKey(UserReceiveCouponDO record);
}